﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Xml.Linq;

namespace NSpotifyLib
{
    internal abstract class BaseReader<T>
    {
        protected const string ns = "{http://www.spotify.com/ns/music/1}";

        protected XDocument document;

        protected internal BaseReader(XDocument document)
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            this.document = document;
        }

        public abstract IEnumerable<T> Read();
    }
}
